<div class="data-input">
    <fieldset>
        <legend><?php echo "$formTitle";?></legend>
        <?php
          foreach ($dataInput as $row);
          echo form_open($subLink, "");
        ?>
        <label>Nama</label><?php echo form_input("nama", $row['nama'], "id=nama")?>
        <fieldset class="field-group">
            <label>Tgl. Mulai</label>
            <?php echo form_input("tglMulai", datefmysql($row['tgl_mulai']), "class='tanggal datepicker-input' id='tglMulai'");?>
        </fieldset>
        <fieldset class="field-group">
            <label>Tgl. Selesai</label>
            <?php echo form_input("tglSelesai", datefmysql($row['tgl_selesai']), "class='tanggal datepicker-input' id='tglSelesai'");?>
        </fieldset>
        <label>Semester</label>
        <select name="semester" id="semester">
            <option value="">Pilih semester</option>
            <?php
               foreach ($listSemester as $rows){
            ?> 
               <option value="<?php echo $rows['id'];?>" <?php if($row['id_semester'] == $rows['id']) echo "selected='selected'";?>><?php echo $rows['nama'];?></option>
            <?php
               }
            ?>
        </select>
        <fieldset class="input-process">
            <?php
              echo form_hidden("id", $row['id']);
              echo form_submit("add", "Simpan", "class='button' style='margin-right:2px'");
              echo form_button('Batal', 'Batal', 'class=button onClick='."javascript:location.href='".base_url()."index.php/tahun_ajaran/'".'');
            ?>
        </fieldset>
        <?php
          echo form_close();
        ?>
    </fieldset>
</div>

